<template>
  <div class="login-container">
    <!-- 导航栏 -->
    <van-nav-bar class="page-nav-bar" title="登录" />
    <!-- /导航栏 -->

    <!-- 登录表单 -->
    <van-form @submit="onSubmit">

      <van-field
        name="用户名"
        placeholder="请输入手机号"
        v-model="user.mobile"
      >
<i slot="left-icon" class="iconfont icon-shouji"></i>
      </van-field>
      <van-divider :style="{ color: '#1989fa', borderColor: '#000', hairline:false }"/>
      <van-field
        type="password"
        name="验证码"
        placeholder="请输入验证码"
        v-mode="user.code"
      >
      <i slot="left-icon" class="iconfont icon-shouji z"></i>
        <template #button>
          <van-button class="send-sms-btn" round size="small" type="default">发送验证码</van-button>
        </template>
      </van-field>
      <div class="login-btn-wrap">
        <van-button class="login-btn" block type="info" native-type="submit">
          登录
        </van-button>
      </div>
    </van-form>
    <!-- /登录表单 -->
  </div>
</template>
<script>
export default {
  name: 'LoginIndex',

  data () {
    return {
      user: {
        mobie: '',
        code: ''
      }
    }
  },
  methods: {
    onSubmit (values) {
      console.log('submit', values)
    }
  }

}
</script>
<style scoped lang="less">
.login-container {
 .z{
    vertical-align:-7px;
  }
  .hairline{
    width:3.55333rem;
    height: 0.22667rem;
  }
  .toutiao {
    font-size: 37px;
  }
  .send-sms-btn {
    width: 100px;
    height: 35px;
    line-height: 46px;
    background-color: #ededed;
    font-size: 13px;
    color: #666;
  }
  .login-btn-wrap {
    padding: 53px 33px;
    .login-btn {
      background-color: #6db4fb;
      border: none;
    }
  }
}
</style>
